package cn.zt.controller;

import cn.zt.common.Result;
import cn.zt.service.TSavingsRateService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: 反正路也要一个人走
 * @author: Mr.Mao
 * @create: 2024-09-10 16:23
 **/
@RestController
@RequestMapping("/rate")
public class RateController {

    @Resource
    private TSavingsRateService savingsRateService;

    @GetMapping("/list")
    public Result list(){
        Result result = savingsRateService.select();
        return result;
    }
}
